// source --> http://vanroode.nl/wp-content/themes/scodeTheme/js/scrollreveal.min.js?ver=1 !function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):e.ScrollReveal=t()}(this,function(e,t,n){return function(){"use strict";var e,t,n;this.ScrollReveal=function(){function i(n){return"undefined"==typeof this||Object.getPrototypeOf(this)!==i.prototype?new i(n):(e=this,e.tools=new t,e.isSupported()?(e.tools.extend(e.defaults,n||{}),o(e.defaults),e.store={elements:{},containers:[]},e.sequences={},e.history=[],e.uid=0,e.initialized=!1):"undefined"!=typeof console&&null!==console&&console.log("ScrollReveal is not supported in this browser."),e)}function o(t){var n=t.container;return n&&"string"==typeof n?t.container=window.document.querySelector(n):(n&&!e.tools.isNode(n)&&(console.log("ScrollReveal: Invalid container provided, using instead."),t.container=null),null==n&&(t.container=window.document.documentElement),t.container)}function r(){return++e.uid}function s(t,n){t.config?t.config=e.tools.extendClone(t.config,n):t.config=e.tools.extendClone(e.defaults,n),"top"===t.config.origin||"bottom"===t.config.origin?t.config.axis="Y":t.config.axis="X","top"!==t.config.origin&&"left"!==t.config.origin||(t.config.distance="-"+t.config.distance)}function a(e){var t=window.getComputedStyle(e.domEl);e.styles||(e.styles={transition:{},transform:{},computed:{}},e.styles.inline=e.domEl.getAttribute("style")||"",e.styles.inline+="; visibility: visible; ",e.styles.computed.opacity=t.opacity,t.transition&&"all 0s ease 0s"!=t.transition?e.styles.computed.transition=t.transition+", ":e.styles.computed.transition=""),e.styles.transition.instant=l(e,0),e.styles.transition.delayed=l(e,e.config.delay),e.styles.transform.initial=" -webkit-transform:",e.styles.transform.target=" -webkit-transform:",c(e),e.styles.transform.initial+="transform:",e.styles.transform.target+="transform:",c(e)}function l(e,t){var n=e.config;return"-webkit-transition: "+e.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; transition: "+e.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; "}function c(e){var t=e.config,n=e.styles.transform;parseInt(t.distance)&&(n.initial+=" translate"+t.axis+"("+t.distance+")",n.target+=" translate"+t.axis+"(0)"),t.scale&&(n.initial+=" scale("+t.scale+")",n.target+=" scale(1)"),t.rotate.x&&(n.initial+=" rotateX("+t.rotate.x+"deg)",n.target+=" rotateX(0)"),t.rotate.y&&(n.initial+=" rotateY("+t.rotate.y+"deg)",n.target+=" rotateY(0)"),t.rotate.z&&(n.initial+=" rotateZ("+t.rotate.z+"deg)",n.target+=" rotateZ(0)"),n.initial+="; opacity: "+t.opacity+";",n.target+="; opacity: "+e.styles.computed.opacity+";"}function f(t){var n=t.config.container;n&&-1==e.store.containers.indexOf(n)&&e.store.containers.push(t.config.container),e.store.elements[t.id]=t}function u(t,n,i){var o={selector:t,config:n,interval:i};e.history.push(o)}function d(){if(e.isSupported()){g();for(var t=0;tt&&i>m&&n>g&&v>y}function n(){return"fixed"===window.getComputedStyle(e.domEl).position}var i=E(e.domEl),o=x(e.config.container),r=q(e.config.container),s=e.config.viewFactor,a=i.height,l=i.width,c=i.top,f=i.left,u=c+a,d=f+l;return t()||n()}return i.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier(0.6, 0.2, 0.1, 1)",container:null,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},afterReveal:function(e){},afterReset:function(e){}},i.prototype.isSupported=function(){var e=document.documentElement.style;return"WebkitTransition"in e&&"WebkitTransform"in e||"transition"in e&&"transform"in e},i.prototype.reveal=function(t,n,i,l){var c,y,m,g,p,v;if(c=n&&n.container?o(n):e.defaults.container,y=e.tools.isNode(t)?[t]:Array.prototype.slice.call(c.querySelectorAll(t)),!y.length)return console.log('ScrollReveal: reveal on "'+t+'"" failed, no elements found.'),e;n&&"number"==typeof n&&(i=n,n={}),i&&"number"==typeof i&&(v=r(),p=e.sequences[v]={id:v,interval:i,elemIds:[],active:!1});for(var w=0;w http://vanroode.nl/wp-content/themes/scodeTheme/js/modernizr-custom.js?ver=1 /*! modernizr 3.3.1 (Custom Build) | MIT * * https://modernizr.com/download/?-apng-audio-cssvhunit-objectfit-svg-svgasimg-video-videoautoplay-videoloop-videopreload-setclasses-cssclassprefix:mod- !*/ !function(A,e,t){function n(A,e){return typeof A===e}function o(){var A,e,t,o,a,r,i;for(var l in y)if(y.hasOwnProperty(l)){if(A=[],e=y[l],e.name&&(A.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(t=0;tu;u++)if(f=A[u],h=x.style[f],s(f,"-")&&(f=i(f)),x.style[f]!==t){if(a||n(o,"undefined"))return l(),"pfx"==e?f:!0;try{x.style[f]=o}catch(w){}if(x.style[f]!=h)return l(),"pfx"==e?f:!0}return l(),!1}function m(A,e,t,o,a){var r=A.charAt(0).toUpperCase()+A.slice(1),i=(A+" "+G.join(r+" ")+r).split(" ");return n(e,"string")||n(e,"undefined")?h(i,e,o,a):(i=(A+" "+C.join(r+" ")+r).split(" "),d(i,e,t))}var w=[],y=[],E={_version:"3.3.1",_config:{classPrefix:"mod-",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(A,e){var t=this;setTimeout(function(){e(t[A])},0)},addTest:function(A,e,t){y.push({name:A,fn:e,options:t})},addAsyncTest:function(A){y.push({name:null,fn:A})}},Modernizr=function(){};Modernizr.prototype=E,Modernizr=new Modernizr,Modernizr.addTest("svg",!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var v=e.documentElement,R="svg"===v.nodeName.toLowerCase();Modernizr.addTest("audio",function(){var A=r("audio"),e=!1;try{(e=!!A.canPlayType)&&(e=new Boolean(e),e.ogg=A.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),e.mp3=A.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),e.opus=A.canPlayType('audio/ogg; codecs="opus"')||A.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),e.wav=A.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),e.m4a=(A.canPlayType("audio/x-m4a;")||A.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(t){}return e}),Modernizr.addTest("video",function(){var A=r("video"),e=!1;try{(e=!!A.canPlayType)&&(e=new Boolean(e),e.ogg=A.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),e.h264=A.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),e.webm=A.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),e.vp9=A.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),e.hls=A.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(t){}return e}),Modernizr.addTest("videoloop","loop"in r("video")),Modernizr.addTest("videopreload","preload"in r("video")),Modernizr.addTest("canvas",function(){var A=r("canvas");return!(!A.getContext||!A.getContext("2d"))});var B;!function(){var A={}.hasOwnProperty;B=n(A,"undefined")||n(A.call,"undefined")?function(A,e){return e in A&&n(A.constructor.prototype[e],"undefined")}:function(e,t){return A.call(e,t)}}(),E._l={},E.on=function(A,e){this._l[A]||(this._l[A]=[]),this._l[A].push(e),Modernizr.hasOwnProperty(A)&&setTimeout(function(){Modernizr._trigger(A,Modernizr[A])},0)},E._trigger=function(A,e){if(this._l[A]){var t=this._l[A];setTimeout(function(){var A,n;for(A=0;Ao?void(e=setTimeout(A,t)):(a.removeEventListener("playing",A,!1),l("videoautoplay",i),void a.parentNode.removeChild(a))}var e,t=200,n=5,o=0,a=r("video"),i=a.style;if(!(Modernizr.video&&"autoplay"in a))return void l("videoautoplay",!1);i.position="absolute",i.height=0,i.width=0;try{if(Modernizr.video.ogg)a.src="data:video/ogg;base64,T2dnUwACAAAAAAAAAABmnCATAAAAAHDEixYBKoB0aGVvcmED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AAAABAAAAAQAAABRzdHN6AAAAAAAAAsUAAAABAAAAFHN0Y28AAAAAAAAAAQAAADAAAABidWR0YQAAAFptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABtZGlyYXBwbAAAAAAAAAAAAAAAAC1pbHN0AAAAJal0b28AAAAdZGF0YQAAAAEAAAAATGF2ZjU2LjQwLjEwMQ=="}}catch(s){return void l("videoautoplay",!1)}a.setAttribute("autoplay",""),a.style.cssText="display:none",v.appendChild(a),setTimeout(function(){a.addEventListener("playing",A,!1),e=setTimeout(A,t)},0)});var T="Moz O ms Webkit",G=E._config.usePrefixes?T.split(" "):[];E._cssomPrefixes=G;var F=function(e){var n,o=prefixes.length,a=A.CSSRule;if("undefined"==typeof a)return t;if(!e)return!1;if(e=e.replace(/^@/,""),n=e.replace(/-/g,"_").toUpperCase()+"_RULE",n in a)return"@"+e;for(var r=0;o>r;r++){var i=prefixes[r],l=i.toUpperCase()+"_"+n;if(l in a)return"@-"+i.toLowerCase()+"-"+e}return!1};E.atRule=F;var C=E._config.usePrefixes?T.toLowerCase().split(" "):[];E._domPrefixes=C;var Q={elem:r("modernizr")};Modernizr._q.push(function(){delete Q.elem});var x={style:Q.elem.style};Modernizr._q.unshift(function(){delete x.style}),E.testAllProps=m;var Z=E.prefixed=function(A,e,t){return 0===A.indexOf("@")?F(A):(-1!=A.indexOf("-")&&(A=i(A)),e?m(A,e,t):m(A,"pfx"))};Modernizr.addTest("objectfit",!!Z("objectFit"),{aliases:["object-fit"]});var Y=E.testStyles=f;Y("#modernizr { height: 50vh; }",function(e){var t=parseInt(A.innerHeight/2,10),n=parseInt((A.getComputedStyle?getComputedStyle(e,null):e.currentStyle).height,10);Modernizr.addTest("cssvhunit",n==t)}),o(),a(w),delete E.addTest,delete E.addAsyncTest;for(var P=0;P http://vanroode.nl/wp-content/themes/scodeTheme/js/responsiveVideo.js?ver=1 var scrollvar; function scrolldw() { // havent scrolled in 20ms! var y = jQuery(this).scrollTop(); var wHeight = jQuery(window).height(); var part = y / wHeight; var video = jQuery('.top-media .video-container video').get(0); if (!video) { return; } var videoPaused = video.paused; if (part > 0.22) { if (!videoPaused) { video.pause(); jQuery('.top-media .video-container video').css('opacity', '0.5'); } } else { if (videoPaused) { video.play(); jQuery('.top-media .video-container video').css('opacity', '1'); } } } jQuery(function ($) { var vidLoaded = false; var wWidth = jQuery(window).width(); var wHeight = jQuery(window).height(); var mobile = (jQuery('body > .mobile').length) ? true : false; var mobileOrSmall = (mobile || wWidth < 751 || wHeight < 501) ? true : false; if (!mobile) { jQuery(window).scroll(function () { clearTimeout(scrollvar); scrollvar = setTimeout(scrolldw, 10); }); } var $topMedia = jQuery('.top-media').first(); var $topMediaContainer = $topMedia.find('.top-media-container').first(); var $video = $topMedia.find('video').first(); var videoStartHeight, videoStartWidth, vidwRatio, vidhRatio; var $image = $topMedia.find('img').first(); var $imageHeight = false; if (wWidth < 768) { $('html').removeClass('gt768').addClass('lt768'); } else { $('html').addClass('gt768').removeClass('lt768'); } if (!$topMedia.length || !$topMediaContainer.length) { console.log('No top media or top media container on this page'); return; } var fixedVideo = ($topMediaContainer.hasClass('fixed') || $topMediaContainer.hasClass('video-fixed')) ? true : false; var headerVideo = ($topMediaContainer.hasClass('header-video')) ? true : false; //see if we have a video or image if (!$video.length && !$image.length) { // no video, do we have an image? console.log('Top media, but neither video or image'); return; } var mediaType = findMediaType(); switchMediaType(mediaType); var doitc; window.onresize = function () { clearTimeout(doitc); doitc = setTimeout(function () { wWidth = jQuery(window).width(); wHeight = jQuery(window).height(); if (wWidth < 768) { $('html').removeClass('gt768').addClass('lt768'); } else { $('html').addClass('gt768').removeClass('lt768'); } videoStartHeight = $video.outerHeight(); videoStartWidth = $video.outerWidth(); vidwRatio = videoStartWidth / videoStartHeight; vidhRatio = videoStartHeight / videoStartWidth; mobileOrSmall = (mobile || wWidth < 751 || wHeight < 501) ? true : false; console.log('resize event responsiveVideo.js. new wWidth: ' + wWidth + ' & new wHeight: ' + wHeight); mediaType = findMediaType(); switchMediaType(mediaType); Waypoint.refreshAll(); }, 40); }; function findMediaType() { //see if we have top media at all if (mobileOrSmall) { if (!mobile && !$image.length && $video.length) { console.log('small browser size, show video anyway because we have no image'); return 'video'; } return 'mobile'; } if ($video.length) { return 'video'; } if ($image.length) { return 'image'; } return false; } function switchMediaType(mediaType) { console.log('wHeight = ' + wHeight); switch (mediaType) { case 'mobile' : showMobileMedia(); break; case 'image': topMediaImage(); break; case 'video': //so we have a video console.log('top media is video'); var video = $video.get(0); if (vidLoaded) { console.log('video has loaded before, skip init.'); switchVideoType($video); } else if (loadedvideodata) { vidLoaded = true; console.log('video loaded before this script got loaded'); videoStartHeight = $video.outerHeight(); videoStartWidth = $video.outerWidth(); vidwRatio = videoStartWidth / videoStartHeight; vidhRatio = videoStartHeight / videoStartWidth; switchVideoType($video); } else if (!loadedvideodata) { vidLoaded = true; if (window.addEventListener) { console.log('wait for video to load data...'); $(window).unbind('loadeddata'); video.addEventListener('loadeddata', function () { console.log('...top media video loaded!'); videoStartHeight = $video.outerHeight(); videoStartWidth = $video.outerWidth(); vidwRatio = videoStartWidth / videoStartHeight; vidhRatio = videoStartHeight / videoStartWidth; switchVideoType($video); }, false); } } break; } if (jQuery('#footer.fixed-footer').length) { footerHeight = jQuery('#footer.fixed-footer').outerHeight(); jQuery('#fixed-footer-filler').height(footerHeight); } } function switchVideoType() { // is it a fixed video? var targetFillerHeight = resizeVideo(); console.log('target filler height = ' + targetFillerHeight); setVideoContainerSizes(targetFillerHeight); if (headerVideo && fixedVideo) { console.log('[] headervideo && fixedvideo'); setFillerSizes(targetFillerHeight); } else if (headerVideo) { console.log('[] headervideo'); } else if (fixedVideo) { console.log('[] fixedvideo'); setFillerSizes(targetFillerHeight); } else { console.log('[] just video'); } } function resizeVideo() { if ($video.hasClass('object-fit') && Modernizr.objectfit) { console.log('resize video canceled, because we have objectfit!!'); var returnHeight = 0; if (headerVideo) { console.log('headervideo, so return wheight (' + wHeight + ')'); returnHeight = wHeight; } else { console.log('not headervideo, so return video height or 2/3 wheight. VidHeight = ' + $video.data('height')); returnHeight = Math.min($video.data('height'), (wHeight * 0.67)); } console.log('return height = ' + returnHeight); $topMedia.css('height', returnHeight - 32); $topMediaContainer.css('height', returnHeight); return returnHeight; } console.log('resizeVideo'); var targetHeight = (headerVideo) ? wHeight : Math.min(videoStartHeight, wHeight); var targetFillerHeight = targetHeight; var targetWidth = wWidth; var currentHeight = $video.outerHeight(); var currentWidth = $video.outerWidth(); console.log('target height: ' + targetHeight + ' & target width: ' + targetWidth); console.log('from height: ' + currentHeight + ' & from width: ' + currentWidth); console.log('vidRatio = ' + vidwRatio + ' & vidhRatio = ' + vidhRatio); currentWidth = targetWidth; currentHeight = currentWidth * vidhRatio; if (headerVideo) { if (currentHeight < targetHeight) { currentHeight = targetHeight; currentWidth = currentHeight * vidwRatio; } currentHeight = currentWidth * vidhRatio; } else { targetFillerHeight = Math.min(videoStartHeight, wHeight); } $video.css({ 'position': 'relative', 'top': 0, 'left': 0 }); if (currentWidth > targetWidth) { var sparePixels = currentWidth - targetWidth; $video.css({ 'left': '-' + sparePixels / 2 + 'px' }); } if (headerVideo) { // if not headerVideo, the height is equal to the height of the video. // Because of this, the top does only have to be adjusted if headerVideo if (currentHeight > targetHeight) { var sparePixels = currentHeight - targetHeight; $video.css({ 'top': '-' + sparePixels / 2 + 'px' }); } } console.log('set to height: ' + currentHeight + ' & set to width: ' + currentWidth); $video.height(currentHeight).width(currentWidth); return targetFillerHeight; } function setVideoContainerSizes(targetFillerHeight) { var videoContainerWidth = wWidth; var videoContainerHeight; if (headerVideo) { videoContainerHeight = wHeight; } else { videoContainerHeight = targetFillerHeight; } console.log('set vid container sizes -|- width: ' + videoContainerWidth + ' & height: ' + videoContainerHeight); $('.video-container').first().width(videoContainerWidth).height(videoContainerHeight).css('max-height', videoContainerHeight); $topMedia.addClass('top-media-loaded'); } function setFillerSizes(targetFillerHeight) { var fillerWidth = wWidth; var fillerHeight; if (headerVideo) { fillerHeight = wHeight; } else { fillerHeight = targetFillerHeight; } console.log('set media filler sizes -|- width: ' + fillerWidth + ' & height: ' + fillerHeight); $('.top-media-filler').width(fillerWidth).height(fillerHeight).css('max-height', fillerHeight); } function showMobileMedia() { console.log('Is mobile or small: wWidth = ' + wWidth + ' & wHeight = ' + wHeight); } function topMediaImage() { console.log('top media is image'); if (!$imageHeight && !$image.outerHeight()) { $image.load(function () { if (!$imageHeight) { $imageHeight = $image.outerHeight(); } console.log('waited for header img to load'); var targetFillerHeight = Math.min($imageHeight, wHeight); setVideoContainerSizes(targetFillerHeight); if (headerVideo && fixedVideo) { console.log('[] headerImg && fixedImg'); setFillerSizes(targetFillerHeight); } else if (headerVideo) { console.log('[] headerImg'); } else if (fixedVideo) { console.log('[] fixedImg'); setFillerSizes(targetFillerHeight); } else { console.log('[] just img'); } $topMedia.css('height', $imageHeight - 32); $topMediaContainer.css('height', $imageHeight - 32); }); return; } if (!$imageHeight) { $imageHeight = ($image.data('height')) ? $image.data('height') : $image.outerHeight(); if ($imageHeight < wHeight * 0.67) { $imageHeight = wHeight * 0.67; } } var targetFillerHeight = Math.min($imageHeight, wHeight); setVideoContainerSizes(targetFillerHeight); if (headerVideo && fixedVideo) { console.log('[] headerImg && fixedImg'); setFillerSizes(targetFillerHeight); } else if (headerVideo) { console.log('[] headerImg'); } else if (fixedVideo) { console.log('[] fixedImg'); setFillerSizes(targetFillerHeight); } else { console.log('[] just img'); } $topMedia.css('height', targetFillerHeight - 32); $topMediaContainer.css('height', targetFillerHeight); if (Modernizr.objectfit) { $image.css({ 'width': '100%', 'height': '100%', 'top': 0 }); } else { $image.css({ 'width': '100%', 'height': 'auto', 'top': 0 }); } } }); // source --> http://vanroode.nl/wp-content/themes/scodeTheme/js/plax-master/js/plax.js?ver=1 /* Plax version 1.4.1 */ /* Copyright (c) 2011 Cameron McEfee Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function ($) { var maxfps = 25, delay = 1 / maxfps * 1000, lastRender = new Date().getTime(), layers = [], plaxActivityTarget = {}, motionDegrees = 30, motionMax = 1, motionMin = -1, motionStartX = null, motionStartY = null, ignoreMoveable = false, options = null; var defaults = { useTransform : true }; // Public Methods $.fn.plaxify = function (params){ options = $.extend({}, defaults, params); options.useTransform = (options.useTransform ? supports3dTransform() : false); return this.each(function () { var layerExistsAt = -1; var layer = { "xRange": $(this).data('xrange') || 0, "yRange": $(this).data('yrange') || 0, "zRange": $(this).data('zrange') || 0, "invert": $(this).data('invert') || false, "background": $(this).data('background') || false }; for (var i=0;i= 0){ layers.splice(layerExistsAt,1,layer); } else { layers.push(layer); } }); }; // Get the translate position of the element // // return 3 element array for translate3d function get3dTranslation(obj) { var translate = [0,0,0], matrix = obj.css("-webkit-transform") || obj.css("-moz-transform") || obj.css("-ms-transform") || obj.css("-o-transform") || obj.css("transform"); if(matrix !== 'none') { var values = matrix.split('(')[1].split(')')[0].split(','); var x = 0, y = 0, z = 0; if(values.length == 16){ // 3d matrix x = (parseFloat(values[values.length - 4])); y = (parseFloat(values[values.length - 3])); z = (parseFloat(values[values.length - 2])); }else{ // z is not transformed as is not a 3d matrix x = (parseFloat(values[values.length - 2])); y = (parseFloat(values[values.length - 1])); z = 0; } translate = [x,y,z]; } return translate; } // Check if element is in viewport area // // Returns boolean function inViewport(element) { if (element.offsetWidth === 0 || element.offsetHeight === 0) return false; var height = document.documentElement.clientHeight, rects = element.getClientRects(); for (var i = 0, l = rects.length; i < l; i++) { var r = rects[i], in_viewport = r.top > 0 ? r.top <= height : (r.bottom > 0 && r.bottom <= height); if (in_viewport) return true; } return false; } // Check support for 3dTransform // // Returns boolean function supports3dTransform() { var el = document.createElement('p'), has3d, transforms = { 'webkitTransform':'-webkit-transform', 'OTransform':'-o-transform', 'msTransform':'-ms-transform', 'MozTransform':'-moz-transform', 'transform':'transform' }; document.body.insertBefore(el, null); for (var t in transforms) { if (el.style[t] !== undefined) { el.style[t] = "translate3d(1px,1px,1px)"; has3d = window.getComputedStyle(el).getPropertyValue(transforms[t]); } } document.body.removeChild(el); return (has3d !== undefined && has3d.length > 0 && has3d !== "none"); } // Determine if the device has an accelerometer // // returns true if the browser has window.DeviceMotionEvent (mobile) function moveable(){ return (ignoreMoveable===true) ? false : window.DeviceOrientationEvent !== undefined; } // The values pulled from the gyroscope of a motion device. // // Returns an object literal with x and y as options. function valuesFromMotion(e) { x = e.gamma; y = e.beta; // Swap x and y in Landscape orientation if (Math.abs(window.orientation) === 90) { var a = x; x = y; y = a; } // Invert x and y in upsidedown orientations if (window.orientation < 0) { x = -x; y = -y; } motionStartX = (motionStartX === null) ? x : motionStartX; motionStartY = (motionStartY === null) ? y : motionStartY; return { x: x - motionStartX, y: y - motionStartY }; } // Move the elements in the `layers` array within their ranges, // based on mouse or motion input // // Parameters // // e - mousemove or devicemotion event // // returns nothing function plaxifier(e) { if (new Date().getTime() < lastRender + delay) return; lastRender = new Date().getTime(); var leftOffset = (plaxActivityTarget.offset() != null) ? plaxActivityTarget.offset().left : 0, topOffset = (plaxActivityTarget.offset() != null) ? plaxActivityTarget.offset().top : 0, x = e.pageX-leftOffset, y = e.pageY-topOffset; if (!inViewport(layers[0].obj[0].parentNode)) return; if(moveable()){ if(e.gamma === undefined){ ignoreMoveable = true; return; } values = valuesFromMotion(e); // Admittedly fuzzy measurements x = values.x / motionDegrees; y = values.y / motionDegrees; // Ensure not outside of expected range, -1 to 1 x = x < motionMin ? motionMin : (x > motionMax ? motionMax : x); y = y < motionMin ? motionMin : (y > motionMax ? motionMax : y); // Normalize from -1 to 1 => 0 to 1 x = (x + 1) / 2; y = (y + 1) / 2; } var hRatio = x/((moveable() === true) ? motionMax : plaxActivityTarget.width()), vRatio = y/((moveable() === true) ? motionMax : plaxActivityTarget.height()), layer, i; for (i = layers.length; i--;) { layer = layers[i]; if(options.useTransform && !layer.background){ newX = layer.transformStartX + layer.inversionFactor*(layer.xRange*hRatio); newY = layer.transformStartY + layer.inversionFactor*(layer.yRange*vRatio); newZ = layer.transformStartZ; layer.obj .css({'transform':'translate3d('+newX+'px,'+newY+'px,'+newZ+'px)'}); }else{ newX = layer.startX + layer.inversionFactor*(layer.xRange*hRatio); newY = layer.startY + layer.inversionFactor*(layer.yRange*vRatio); if(layer.background) { layer.obj .css('background-position', newX+'px '+newY+'px'); } else { layer.obj .css('left', newX) .css('top', newY); } } } } $.plax = { // Begin parallaxing // // Parameters // // opts - options for plax // activityTarget - optional; plax will only work within the bounds of this element, if supplied. // // Examples // // $.plax.enable({ "activityTarget": $('#myPlaxDiv')}) // # plax only happens when the mouse is over #myPlaxDiv // // returns nothing enable: function(opts){ if (opts) { if (opts.activityTarget) plaxActivityTarget = opts.activityTarget || $(document.body); if (typeof opts.gyroRange === 'number' && opts.gyroRange > 0) motionDegrees = opts.gyroRange; } else { plaxActivityTarget = $(document.body); } plaxActivityTarget.bind('mousemove.plax', function (e) { plaxifier(e); }); if(moveable()){ window.ondeviceorientation = function(e){plaxifier(e);}; } }, // Stop parallaxing // // Examples // // $.plax.disable() // # plax no longer runs // // $.plax.disable({ "clearLayers": true }) // # plax no longer runs and all layers are forgotten // // returns nothing disable: function(opts){ $(document).unbind('mousemove.plax'); window.ondeviceorientation = undefined; if (opts && typeof opts.restorePositions === 'boolean' && opts.restorePositions) { for(var i = layers.length; i--;) { layer = layers[i]; if(options.useTransform && !layer.background){ layer.obj .css('transform', 'translate3d('+layer.transformOriginX+'px,'+layer.transformOriginY+'px,'+layer.transformOriginZ+'px)') .css('top', layer.originY); }else{ if(layers[i].background) { layer.obj.css('background-position', layer.originX+'px '+layer.originY+'px'); } else { layer.obj .css('left', layer.originX) .css('top', layer.originY); } } } } if (opts && typeof opts.clearLayers === 'boolean' && opts.clearLayers) layers = []; } }; if (typeof ender !== 'undefined') { $.ender($.fn, true); } })(function () { return typeof jQuery !== 'undefined' ? jQuery : ender; }()); // source --> http://vanroode.nl/wp-content/themes/scodeTheme/js/gym.js?ver=1 jQuery(function ($) { var locationHeight = 280; function scrollToTarget(target, speed, extraOffset) { if (typeof speed === 'undefined') { speed = 1000; } if (typeof extraOffset === 'undefined') { extraOffset = 0; } if (target.length) { jQuery('html,body').animate({ scrollTop: target.offset().top + extraOffset }, speed); return false; } } jQuery(document).on('click', 'tr.hasOef', function () { $(".oefeningen .oefening").removeClass('active'); if ($(this).hasClass('active')) { $(this).removeClass('active'); return; } var slug = $(this).data('slug'); $("tr.hasOef").removeClass('active'); $(this).addClass('active'); var $oef = $(".oefeningen .oefening[data-slug='" + slug + "']").addClass('active'); if ($('html.is-mobile').length) { scrollToTarget($(".oefeningen .oefening.active"), 1000); } $('.training-schema-col').css('min-height', $oef.outerHeight(true) + 130); }); if ($('.contact-forms-row').length) { var defaultLocatieInfo = '
24 lifestyle logo
Selecteer een locatie
'; $('.user-emails').first().append('
' + defaultLocatieInfo + '
'); updateActiveLocation(); jQuery(document).on('change', '.user-emails select.gfield_select', function () { updateActiveLocation(); }); jQuery(document).on('blur', '.user-emails .chosen-container', function () { updateActiveLocation(); }); } jQuery(document).on('click', '.user-action-button a', function (e) { e.preventDefault(); $('.user-action-button a').removeClass('active'); $(this).addClass('active'); var action = $(this).data('action'); return showProgressInputs(action); }); function showProgressInputs(tableName) { $('.user-action-button.closebutton').show(); if (tableName === 'progress') { $('.profile-table').hide(); $('.progress-table').show(); } else if (tableName === 'profile') { $('.progress-table').hide(); $('.profile-table').show(); } else { $('.profile-table').hide(); $('.progress-table').hide(); $('.user-action-button.closebutton').hide(); return false; } return true; } function updateActiveLocation() { var locatieID = $('.user-emails select.gfield_select').val(); if (!locatieID || locatieID === ' ') { console.log('locatieID empty'); $('.user-emails .locatie-details').html(defaultLocatieInfo); return false; } console.log('locatieID: ' + locatieID); $locationDetails = $("#hidden-locaties .locatie-details[data-locatie='" + locatieID + "']"); if (!$locationDetails) { $('.user-emails .locatie-details').html(defaultLocatieInfo); return false; } console.log('$locationDetails: ' + $locationDetails); $('.user-emails .locatie-details').replaceWith($locationDetails.clone()); $('.user-emails .locatie-details img').each(function () { $(this).attr('src', $(this).data('src')); }); if ($('.user-emails .locatie-details .extra-trainers').length) { var amountExtraTrainers = $('.user-emails .locatie-details .extra-trainer').length; console.log('extra trainers: ' + amountExtraTrainers + ' = ' + locationHeight * (amountExtraTrainers + 1)); $('.user-emails .locatie-details').height(locationHeight * (amountExtraTrainers + 1)); } else { console.log('not extra trainers'); $('.user-emails .locatie-details').height(locationHeight); } } if ($('.page-template-page_voortgang').length) { if (!$('.fep-message-error').length && window.location.hash === '#fep-message') { var id = get('id'); if (id) { window.location.href = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname + '?id=' + id; } else { window.location.href = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname; } } if ($('#spoofID').length) { $('form#your-profile').attr("action", "?id=" + $('#spoofID').text() + "#fep-message"); } $('.submit .button-primary').val('Opslaan'); $('.wpua-edit-container h3').text('Jouw profielfoto'); $('#your-profile table.form-table, .wpua-edit-container').addClass('profile-table'); $('#your-profile table.form-table').last().removeClass('profile-table').addClass('progress-table'); $('#your-profile p.submit').addClass('profile-table progress-table'); if (window.location.hash === '#voortgang') { showProgressInputs('progress'); } else if (window.location.hash === '#profiel') { showProgressInputs('profile'); } $('#pass1').val(''); $('#pass2').val(''); setTimeout(function () { $('#pass1').val(''); $('#pass2').val(''); }, 1200); setTimeout(function () { $('#pass1').val(''); $('#pass2').val(''); }, 3200); } function get(name) { if (name = (new RegExp('[?&]' + encodeURIComponent(name) + '=([^&]*)')).exec(location.search)) return name[1]; } }); // source --> http://vanroode.nl/wp-content/themes/scodeTheme/js/jquery.lazyloadxt.extra.min.js?ver=1 /* Lazy Load XT 1.1.0 | MIT License */ !function(a,b,c,d){function e(a,b){return a[b]===d?t[b]:a[b]}function f(){var a=b.pageYOffset;return a===d?r.scrollTop:a}function g(a,b){var c=t["on"+a];c&&(w(c)?c.call(b[0]):(c.addClass&&b.addClass(c.addClass),c.removeClass&&b.removeClass(c.removeClass))),b.trigger("lazy"+a,[b]),k()}function h(b){g(b.type,a(this).off(p,h))}function i(c){if(z.length){c=c||t.forceLoad,A=1/0;var d,e,i=f(),j=b.innerHeight||r.clientHeight,k=b.innerWidth||r.clientWidth;for(d=0,e=z.length;e>d;d++){var l,m=z[d],q=m[0],s=m[n],u=!1,v=c||y(q,o)<0;if(a.contains(r,q)){if(c||!s.visibleOnly||q.offsetWidth||q.offsetHeight){if(!v){var x=q.getBoundingClientRect(),B=s.edgeX,C=s.edgeY;l=x.top+i-C-j,v=i>=l&&x.bottom>-C&&x.left<=k+B&&x.right>-B}if(v){m.on(p,h),g("show",m);var D=s.srcAttr,E=w(D)?D(m):q.getAttribute(D);E&&(q.src=E),u=!0}else A>l&&(A=l)}}else u=!0;u&&(y(q,o,0),z.splice(d--,1),e--)}e||g("complete",a(r))}}function j(){B>1?(B=1,i(),setTimeout(j,t.throttle)):B=0}function k(a){z.length&&(a&&"scroll"===a.type&&a.currentTarget===b&&A>=f()||(B||setTimeout(j,0),B=2))}function l(){v.lazyLoadXT()}function m(){i(!0)}var n="lazyLoadXT",o="lazied",p="load error",q="lazy-hidden",r=c.documentElement||c.body,s=b.onscroll===d||!!b.operamini||!r.getBoundingClientRect,t={autoInit:!0,selector:"img[data-src]",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",throttle:99,forceLoad:s,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll touchmove focus",forceEvent:"lazyloadall",oninit:{removeClass:"lazy"},onshow:{addClass:q},onload:{removeClass:q,addClass:"lazy-loaded"},onerror:{removeClass:q},checkDuplicates:!0},u={srcAttr:"data-src",edgeX:0,edgeY:0,visibleOnly:!0},v=a(b),w=a.isFunction,x=a.extend,y=a.data||function(b,c){return a(b).data(c)},z=[],A=0,B=0;a[n]=x(t,u,a[n]),a.fn[n]=function(c){c=c||{};var d,f=e(c,"blankImage"),h=e(c,"checkDuplicates"),i=e(c,"scrollContainer"),j=e(c,"show"),l={};a(i).on("scroll",k);for(d in u)l[d]=e(c,d);return this.each(function(d,e){if(e===b)a(t.selector).lazyLoadXT(c);else{var i=h&&y(e,o),m=a(e).data(o,j?-1:1);if(i)return void k();f&&"IMG"===e.tagName&&!e.src&&(e.src=f),m[n]=x({},l),g("init",m),z.push(m),k()}})},a(c).ready(function(){g("start",v),v.on(t.updateEvent,k).on(t.forceEvent,m),a(c).on(t.updateEvent,k),t.autoInit&&(v.on(t.loadEvent,l),l())})}(window.jQuery||window.Zepto||window.$,window,document),function(a){var b=a.lazyLoadXT;b.selector+=",video,iframe[data-src]",b.videoPoster="data-poster",a(document).on("lazyshow","video",function(c,d){var e=d.lazyLoadXT.srcAttr,f=a.isFunction(e),g=!1;d.attr("poster",d.attr(b.videoPoster)),d.children("source,track").each(function(b,c){var d=a(c),h=f?e(d):d.attr(e);h&&(d.attr("src",h),g=!0)}),g&&this.load()})}(window.jQuery||window.Zepto||window.$);